package com.wzk.travelspringboot.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author: WangZiKang
 * @Date: 2025/1/14 20:21
 */
@Data
public class NoticeDTO {

    @NotBlank
    @Length(min = 1,max = 250,message = "标题长度不合法")
    private String title;

    @NotBlank
    @Length(min = 5,max = 5000,message = "公告内容长度不合法")
    private String content;

    @NotNull
    private Integer type;

    @NotNull
    private Long userId;

}
